package br.com.owl.cardapio;

import com.example.cardapio.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class PedidoActivity extends Activity {

	
	
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.novo_pedido);
		
		
		Button btn_voltar = (Button) findViewById(R.id.btn_voltar);
		
		btn_voltar.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				
				callHomeActivity();
			}
		});
		
		
		
		
		Button btn_massas = (Button) findViewById(R.id.btn_pizzas);
		
		btn_massas.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				callPizzas();
			}
		});
		
		
		
	}
	
	
	
	
    public void callHomeActivity() {
    	
    	this.startActivity(new Intent(this, HomeActivity.class));
    	
    	finish();
	}
    
    
    public void callPizzas() {
    	
    	this.startActivity(new Intent(this, ListViewItem.class));
    	
//    	finish();
	}
    
    
    
    @Override
    protected void onStop() {

    	super.onStop();
    }
    

}
